package com.guli.common.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Objects;

/**
 * @ClassName Attr
 * @Author Hao_YunKai
 * @Date 2022/1/10 17:13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AttrEsModel {
    private Long attrId;
    private String attrName;
    private String attrValue;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof AttrEsModel)) return false;
        AttrEsModel that = (AttrEsModel) o;
        return attrId.equals(that.attrId) && attrName.equals(that.attrName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(attrId, attrName);
    }
}
